import { requestClient } from '#/api/request';
// 获取菜单列表
export const MenuAll = (params: any) =>
  requestClient.get('/menu/all', { params });

// 获取用户菜单列表
export const UserMenu = (params: any) =>
  requestClient.get('/current/user/menu', { params });

// 新增菜单
export const menuAdd = (params: any) => requestClient.post('/menu/add', params);

// 编辑菜单
export const menuEdit = (params: any) =>
  requestClient.post('/menu/update', params);

// 删除菜单
export const menuRemove = (params: any) =>
  requestClient.post('/menu/remove', params);
